package com.iims.common.core.domain.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iims.common.annotation.Excel;
import com.iims.common.annotation.Excel.ColumnType;
import com.iims.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 字典类型表 sys_dict_type
 *
 * @author fanpei
 */
@ApiModel("字典类型")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("cmis_sys_dict_type")
public class SysDictType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 字典主键
     */
    @ApiModelProperty(name = "dictId", value = "主键,修改时必传", position = -1)
    @Excel(name = "字典主键", cellType = ColumnType.NUMERIC)
    @TableId(value = "dict_id", type = IdType.AUTO)
    private Long dictId;

    /**
     * 字典名称
     */
    @ApiModelProperty(value = "字典名称，字典类型名称长度不能超过100个字符", required = true)
    @Excel(name = "字典名称")
    @NotBlank(message = "字典名称不能为空")
    @Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符")
    private String dictName;

    /**
     * 字典类型
     */
    @ApiModelProperty(value = "字典类型，字典类型名称长度不能超过100个字符", required = true)
    @Excel(name = "字典类型")
    @NotBlank(message = "字典类型不能为空")
    @Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符")
    private String dictType;

    /**
     * 状态（1正常 0停用）
     */
    @ApiModelProperty(value = "状态:来源于字典sys_normal_disable", required = true)
    @Excel(name = "状态", readConverterExp = "1=正常,0=停用")
    private String status;
}
